home *** CD-ROM | disk | FTP | other *** search
- // By Judy D. Halchin, Educational Computing Services, Allegheny College.
- // You may freely copy, distribute and reuse this code.
- // Allegheny College and the author disclaim any warranty of any kind,
- // expressed or implied, as to its fitness for any particular use.
- // This work was partially supported by a Teacher Preparation grant from the
- // National Science Foundation.
-
- #import "NumberLine.h"
-
- #define POINTERSIZE 30
-
- @interface PtrNumberLine:NumberLine
- {
- float x;
-
- id pointerNXImage;
- NXRect pointerRect;
-
- id target;
- SEL action;
- }
-
- - initFrame:(NXRect *)frameRect;
- - drawSelf:(const NXRect *)rects :(int)rectCount;
-
- - (float)x;
- - setX:(float)newX;
-
- - pointerNXImage;
- - (NXPoint)pointerLocation;
-
- - mouseDown:(NXEvent *)theEvent;
-
- - target;
- - (SEL)action;
- - setTarget:anObject;
- - setAction:(SEL)anAction;
-
- - setMin:(float)newMin max:(float)newMax;
-
- - (BOOL)acceptsFirstMouse;
-
- @end
-